#ifndef WIDGETS_DOKEREDITOR_H
#define WIDGETS_DOKEREDITOR_H

#include <QPlainTextEdit>

class DokerEditor : public QPlainTextEdit
{
    Q_OBJECT
public:
    explicit DokerEditor(const QString &fileName, const QString &content, QWidget *parent = 0);
    void apply();
    const QString &fileName() { return m_fileName; }
    bool isModified() { return m_isModified; }

public slots:
    void setModified();

signals:
    void modified(bool modified);

private:
    bool m_isModified;
    QString m_fileName;
};

#endif // WIDGETS_DOKEREDITOR_H
